package com.edfu.core.testmgt.vo;

public enum ResponseCodes {
	
	OK(200, "Successful"), 
	BAD_REQUEST(400, "Bad Request"), 
	INTERNAL_SERVER_ERROR(500, "Internal Sever Error"), 
	UNAUTHORIZED(401, "Unauthorized"), 
	FORBIDDEN(403, "Forbidden"), 
	NOT_FOUND(404, "Resource Not Found"), 
	METHOD_NOT_ALLOWED(405, "Method Not Allowed"), 
	NOT_ACCEPTABLE(406, "Not Acceptable"), 
	REQUEST_TIME_OUT(408, "Request Timed Out"), 
	EXPECTATION_FAILED(417, "Expectation Failed"), 
	TEAPOT(418, "Teapot"),
	TEST_BUNDLE_NOT_FOUND(600),
	TEST_BUNDLE_ALREADY_EXISTS(601),
	TEST_NOT_FOUND(602),
	TEST_ALREADY_EXISTS(603),
	TEST_TYPE_NOT_FOUND(604),
	TEST_TYPE_ALREADY_EXISTS(605),
	QUESTION_TYPE_NOT_FOUND(606),
	QUESTION_TYPE_ALREADY_EXISTS(607),
	QUESTION_NOT_FOUND(608),
	QUESTION_ALREADY_EXISTS(609);
	
	private int code;
	private String message;
	
	ResponseCodes(int code) {
		this.code = code;		
	}
	
	ResponseCodes(int code, String message) {
		this.code = code;
		this.message = message;
	}
	
	public int getCode() {
		return code;
	}
	
	public String getMessage() {
		return message;
	}

}
